package com.zuxia.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.zuxia.dao.IAppintmentDao;
import com.zuxia.entity.Appointment;
import com.zuxia.service.IAppointmentService;

@Service
@Transactional
public class AppointmentService implements IAppointmentService {
	@Autowired
	private IAppintmentDao appdao;

	public List selectAppointment(int pageNow, String yname, int pageSize) {

		return appdao.selectAppointment(pageNow, yname , pageSize);
		
	}

	@Override
	public int appsize() {
		
		return appdao.appsize();
	}
	
	@Override
	public void delapp(Appointment appointment) {
		// TODO Auto-generated method stub
		appdao.delapp(appointment);
	}

	@Override
	public void updapp(Appointment appointment) {
		// TODO Auto-generated method stub
		appdao.updapp(appointment);
	}

	@Override
	public void addapp(Appointment appointment) {
		// TODO Auto-generated method stub
		appdao.addapp(appointment);
	}

}
